// 引入 events 模块
var EventEmitter = require('events').EventEmitter;
var event = new EventEmitter();

event.on('someEvent', function(arg1, arg2) { 
    console.log('listener1', arg1, arg2); 
}); 
event.on('someEvent', function(arg1, arg2) { 
    console.log('listener2', arg1, arg2); 
}); 
event.emit('someEvent', 'arg1 参数', 'arg2 参数'); 

console.log("程序执行完毕。");
